#coding=utf-8
# try:
#     import matplotlib
#     matplotlib.use('Agg')
#     import matplotlib.plot as plt
# except Exception as e:
#     print(f"导入错误：{e}")
#     import traceback
#     print(traceback.format_exc())
import matplotlib1 as mpl
mpl.use('Agg')
print(mpl.__file__)  # 查看 matplotlib 安装路径